class A{

}
class Ba extends A{

}
class Ca extends Ba{

}

public class Test1 {
    A a0 = new A();
    A a1 = new Ba();
    A a2 = new Ca();
}
